package chapter09;

/**
 * Created by V5470-I5 on 2016/4/1.
 */
/*import java.util.*;
class Stuendt2 {
    private String name;
    private String number;
    Student2 (String name,String number){
        this.name=name;
        this.number=number;
    }
    @Override
    public int hashCode(){
        int hash=7;
        hash=47*hash+Objects.hashCode(this.name);
        hash=47*hash+Objects.hashCode(this.number);
        return hash;
    }
    @Override
    public boolean equals(Object obj){
        if(obj==null){
            return false;
        }
        if (getClass()!=obj.getClass()){
            return false;
        }
        final Student2 other =(Stuendt2) obj;
        if(!Objects.equals(this.name,other.name)){
            return false;
        }
        if(!Objects.equals(this.number,other.number)){
            return false;
        }
        return false;
    }
    @Override
    public String toString(){
        return String.format("(%s,%s)",name,number);
    }
}
public class Student2{
    public static void main(String[] args){
        Set studedts=new HashSet();
        students.add(new Student("Messi","B1111"));
        students.add(new Student("Messi","B1111"));
        students.add(new Student("Donghea","B1112"));
        System.out.println(set);
    }

}
*/